package 代码记录.Bit48天集训;

import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

/**1.年会抽奖
 * 2.抄送列表
 * 妈的,一道题都没做出来
 * @author zx
 * @create 2022-06-02 19:44
 */
public class day_35 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while(sc.hasNext()){
            String str1 = sc.nextLine();
            String str2 = sc.nextLine();
            String[] arr = str1.split("\"");
            Set<String> set = new HashSet<>();
            for(int i = 0;i < arr.length;i++){
                set.add(arr[i]);
                String[] num = arr[i].split(",");
                for(int j = 0;j < num.length;j++){
                    set.add(num[j]);
                }
            }
            if(set.contains(str2)){
                System.out.println("Ignore");
            }else{
                System.out.println("Important!");
            }
        }
    }
}
